package com.xb.mapper;

import com.xb.entity.User;
import com.xb.entity.UserRole;

import java.util.List;

/**
 * Mapper接口
 */
//@Mapper
public interface UserRoleMapper {
    /**
     * 查询
     *
     * @param uid ID
     * @return
     */
    public List<Integer> selectUserRoleByUid(Integer uid);

    /**
     * 新增
     *
     * @param userRole
     * @return 结果
     */
    public int insertUserRole(UserRole userRole);

    public int insertUserRoleByUser(User user);

    /**
     * 删除
     *
     * @param id ID
     * @return 结果
     */
    public int deleteUserRoleByUid(Integer id);

}
